package com.zyy.seckill.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zyy.seckill.entity.SeckillOrder;
import com.zyy.seckill.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyy
 * @since 2021-10-04
 */
public interface ISeckillOrderService extends IService<SeckillOrder> {

    /**
     *  获取秒杀结果
     * @param user
     * @param goodsId
     * @return orderID:成功 -1秒杀失败 0 排队中
     */
    Long getResult(User user, Long goodsId);
}
